import request from '/@/utils/request';

/**
 * @method getRole 角色列表相关
 */
export function getRole() {
	return {
		getAllRole: (data: object) => {
			return request({
				url: '/api/role/getAllRole',
				method: 'post',
				data,
			});
		},
		addRole: (data: object) => {
			return request({
				url: '/api/role/addRole',
				method: 'post',
				data,
			});
		},
		delRole: (data: object) => {
			return request({
				url: '/api/role/delRole',
				method: 'post',
				data,
			});
		},
	};
}
